package com.oauth.components.client.ui.windows;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.ui.HTMLPanel;

public class GoogleAd extends Composite {

	private static GoogleAdUiBinder uiBinder = GWT.create(GoogleAdUiBinder.class);

	interface GoogleAdUiBinder extends UiBinder<HTMLPanel, GoogleAd> {
	}

	@UiField
	Frame adsense;

	public GoogleAd() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	public void setUrl(String pUrl) {
		adsense.setUrl(pUrl);
		adsense.getElement().setAttribute("scrolling", "no");
	}
}
